#pragma once

class CCmdBase;

class ast_ami
{
public:
    ast_ami();
    ~ast_ami();
    ast_ami * parse( char * aCommand, char ** aEndData );
    void   line_print_dbg( char * aFmts, ... );
    void   dealloc_mem();
    int    alloc_mem( cmd_type aCmdType, event_type aEventType );
    
    event_type getEventType();
    cmd_type   getCmdType();

public: // operator
    ast_ami &operator=( const ast_ami & aOther );
    int operator==( const ast_ami & aOther );
    int operator<( const ast_ami & aOther );
    int operator>( const ast_ami & aOther );
public: //variable
    CCmdBase *pData;
};
